<?php

namespace api\energy;

class Config
{
    // 请求地址
    private static $host = 'https://energy.zguan.cn/openapi';

    // 配置文件
    private static $config;

    /**
     * @return string
     */
    public static function getHost()
    {
        return self::$host;
    }

    /**
     * @param $host
     */
    public static function setHost($host)
    {
        self::$host = $host;
    }


    public static function set($config)
    {
        return self::$config = $config;
    }

    public static function get($key)
    {
        return self::$config[$key] ?? '';
    }
}